package cn.itsource.exam.mapper;

import cn.itsource.exam.domain.Exam;
import cn.itsource.exam.domain.StudentExam;
import cn.itsource.exam.query.ExamQuery;
import cn.itsource.exam.query.ExamResultQuery;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ExamResultMapper extends BaseMapper<StudentExam> {
    public List<StudentExam> selectExamResultList(ExamResultQuery query);
    public int countExamResultList(ExamResultQuery query);
    void updateExamState(Long id);
    //根据答辩id获取参与答辩的学生id
    List<Long> selectByEaxmId(Long examId);
    //修改答辩状态为完成
    void updateStateById(Long id);
}
